Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Series.to_frame(name=None) setting a None name #16698

Merged
merged 3 commits into from
Aug 30, 2024

Conversation

mroeschke
Copy link
Contributor

Description

In pandas 2.0, to_frame(name=None) allowed the resulting column name to be None pandas-dev/pandas#45523

Looks like based on the current default of cudf.Series.to_frame, this behavior was not reflected.

Additionally, created a SingleColumnFrame._to_frame to more easily share the logic between Series.to_frame and Index.to_frame

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@mroeschke mroeschke added bug Something isn't working improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Aug 29, 2024
@mroeschke mroeschke requested a review from a team as a code owner August 29, 2024 20:20
@github-actions github-actions bot added the Python Affects Python cuDF API. label Aug 29, 2024
@galipremsagar galipremsagar removed the improvement Improvement / enhancement to an existing function label Aug 29, 2024
@mroeschke
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit f932bf9 into rapidsai:branch-24.10 Aug 30, 2024
82 checks passed
@mroeschke mroeschke deleted the ref/to_frame/share branch August 30, 2024 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants